/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.web.mapper;

import com.j2eefast.web.entity.ShopEntity;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * shop Mapper接口
 * @author: ZhouZhou
 * @date 2021-06-11 10:29:56
 */
public interface ShopMapper extends BaseMapper<ShopEntity> {

    /**
     * 自定义分页查询
     * @param  page
     * @param  shopEntity 实体类
     */
    Page<ShopEntity> findPage(IPage<ShopEntity> page,
                              @Param("shop") ShopEntity shopEntity,
                              @Param("sql_filter") String sql_filter);

    /**
     * 通过ID查询
     * @param pkId 查询ID
     * @return
     */
    ShopEntity findShopById(@Param("pkId") Long pkId);

    /**
     * 查询列表
     * @param shopEntity 查询条件对象
     * @return
     */
    List<ShopEntity> findList(ShopEntity shopEntity);

}
